package com.onesports.intelligent.k12.polarlight.domain.dto.course;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.onesports.framework.kit.common.valid.NotEmpty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.sql.Time;
import java.util.Date;


/**
 * 排班模板表
 *
 * @author
 * @since 1.0.0 2022-07-08
 */
@Data
@ApiModel(value = "排班模板表VoVo")
public class CourseScheduleTemplateDTO {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("时段id")
    private String id;

    @ApiModelProperty(value = "节次code", required = true)
    @NotEmpty(message = "节次code不可为空")
    private String sectionCode;

    @ApiModelProperty(value = "开始时间(HH:mm)",required = true)
    @NotEmpty(message = "开始时间不可为空")
    @JsonFormat(timezone = "GMT+8",pattern = "HH:mm")
    private Date startTime;

    @ApiModelProperty(value = "结束时间(HH:mm)")
    @NotEmpty(message = "结束时间不可为空")
    @JsonFormat(timezone = "GMT+8",pattern = "HH:mm")
    private Date endTime;
}
